package com.zszedu.service;

import com.zszedu.mapper.RechargeMapper;
import com.zszedu.pojo.Recharge;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class RechargeServiceImpl implements RechargeService{
    @Autowired
    private RechargeMapper rechargeMapper;

    @Override
    public List<Recharge> queryByUid(Long uid) {
        return rechargeMapper.queryByUid(uid);
    }

    @Override
    public void changeStatus(String orderId, Integer i, String payType) {
        rechargeMapper.changeStatus(orderId,i,payType);
    }

    @Override
    public void insert(Recharge recharge) {
        rechargeMapper.insert(recharge);
    }
}
